﻿using System;
using System.Linq.Expressions;
using System.Web.Mvc;
using mvcfluentcontrols.Controls;

namespace mvcfluentcontrols.Extensions
{
    public static class InputExtensions
    {
        public static SmartBox SmartBoxFor<TModel, TProperty>(this HtmlHelper<TModel> helper, Expression<Func<TModel, TProperty>> expression)
        {
            return new SmartBox(ExpressionHelper.GetExpressionText(expression));
        }
    }
}